package week2;

import org.junit.Test;

public class RectangleTest {

    @Test
    public void t1(){
        Rectangle rectangle1 = new Rectangle();
        rectangle1.setHigh(1);
        rectangle1.setWide(1);
        System.out.println(rectangle1.peri());
        System.out.println(rectangle1.area());

        Rectangle rectangle2 = new Rectangle(2);
        System.out.println(rectangle2.peri());
        System.out.println(rectangle2.area());

        Rectangle rectangle3 = new Rectangle(4,4);
        System.out.println(rectangle3.peri());
        System.out.println(rectangle3.area());
    }

}
